package com.wbao.dianniu.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.umeng.analytics.MobclickAgent;
import com.wbao.dianniu.logical.GlobalContext;
import com.wbao.dianniu.R;

/**
 * 账号信息
 * @author yejianjun
 *
 */
public class AccountInfoActivity extends BaseActivity {

	private RelativeLayout rl_password;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentLayout(R.layout.activity_account_info);
		setTitleName("账号信息");
		TextView accountTV = (TextView)findViewById(R.id.account_info_tv);
		accountTV.setText(GlobalContext.mobile + "");
		rl_password = (RelativeLayout) findViewById(R.id.rl_dn_password);
		rl_password.setOnClickListener(this);
		
	}
	
	@Override
	public void onClick(View v) {
		super.onClick(v);
		switch (v.getId()) {
		case R.id.rl_dn_password:
			Intent passIntent = new Intent(AccountInfoActivity.this, ForgetActivity.class);
			/** type: 1 修改密码，0：忘记密码 */
			passIntent.putExtra(GlobalContext.BUNDLE_DATA, 1);
			startActivity(passIntent);
			break;
		default:
			break;
		}
		
	}
	public void onResume() {
		super.onResume();
		MobclickAgent.onResume(this);
		}
		public void onPause() {
		super.onPause();
		MobclickAgent.onPause(this);
		}
	
}
